package top.go2do.common.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.go2do.common.module.CategoryPO;

/**
 * @author xingyuji
 * @date 2025/3/20 15:27
 * @description
 */
public interface CategoryRepository extends JpaRepository<CategoryPO, Long>, JpaSpecificationExecutor<CategoryPO> {
    CategoryPO findByAppIdAndEntityCodeAndParentIdAndCategoryName(String appId, String entityCode, Long parentId, String categoryName);
    CategoryPO findByAppIdAndEntityCodeAndParentIdAndCategoryNameAndCreatedBy(String appId, String entityCode, Long parentId, String categoryName, Long createdBy);
}
